package com.vue.admin.system.service;

import com.alibaba.fastjson.JSONArray;
import com.example.db.model.IPage;
import com.vue.admin.system.model.SysMenu;

import java.util.List;

/**
 * @Classname MenuService
 * @Description TODO
 * @Date 2022/8/20 19:15
 * @Created by XiongXiong
 * @Author: X.I.O
 */
public interface MenuService {

    public SysMenu save(SysMenu sysMenu);

    public SysMenu getSysMenuById(Object id);

    public SysMenu updateById(SysMenu sysMenu);

    public IPage<SysMenu> sysMenuPage(Integer pageNum,Integer pageSize,Object obj);

    public List<SysMenu> list();

    /**
     * 获取用户菜单
     * @return
     */
    public JSONArray getUserMenuList();

    /**
     * 通过组件名称获取菜单
     * @param compontent
     * @return
     */
    public SysMenu getSysMenuByComponent(String compontent);

    /**
     * 通过路径获取菜单
     * @param path
     * @return
     */
    public SysMenu getSysMenuByPath(String path);

}
